{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "124668.qvaoaqlnru\n",
      "001377.nxeceyjsfn\n",
      "003569.jfkhovtfhe\n",
      "223356.ibervwpzkf\n",
      "134478.mxowzmebqu\n",
      "335677.uaptpkogyr\n",
      "012345.akpxijztvx\n",
      "012368.wqhxjxcwuf\n",
      "133345.hqqqgwqgxq\n",
      "114569.dxakxgbsbu\n",
      "001478.grsvvmqjrc\n",
      "125577.yqhsukygfx\n",
      "224459.tecmzaxbnt\n",
      "146789.ipfdcbzmru\n",
      "235888.gysvufnxbc\n",
      "014488.wxamhyrpwx\n",
      "234569.hwvskvrnfy\n",
      "034788.urwfavxuck\n",
      "112557.kacnndfizx\n",
      "012367.taszfekelk\n",
      "233578.ojwffxvtbd\n",
      "023567.sjkmlgkcvc\n",
      "125888.yxhsabxfsi\n",
      "003688.eeaihpvcpj\n",
      "346699.rmhwycahkv\n",
      "156679.mdasmsrnuz\n",
      "025599.vmqjzqcbxc\n",
      "124889.znhxgpbmvd\n",
      "244568.hjxkvwzlsy\n",
      "000159.vsrlhibrkm\n",
      "466778.mqihxcbxhh\n",
      "012788.avptckyraz\n",
      "045678.gdrbuemgzh\n",
      "234677.xtaosjuyis\n",
      "234578.lhdvypklzt\n",
      "016779.obqidmxlbq\n",
      "245567.holkegvbea\n",
      "035689.utgdqpgmbd\n",
      "035558.fnmfrghhsg\n",
      "023889.zamluniofe\n",
      "134567.daktzmljvh\n",
      "124568.mfdyszroof\n",
      "334589.tvekuwlofw\n",
      "255778.hstozlmjxe\n",
      "045677.klcidgdekl\n",
      "233567.jptssafrye\n",
      "114689.ryuayshbmy\n",
      "044579.vtdcgmtaze\n",
      "145779.wjjsovtwxk\n",
      "234577.medbxflhjg\n",
      "023477.gcbjgrfypp\n",
      "123448.ouvmpzpypb\n",
      "225699.zanlzjlxnr\n",
      "036789.bayqlyafrw\n",
      "234589.pvrbzqtpkg\n",
      "334568.cedzxycxae\n",
      "111579.ejizzwdnft\n",
      "012578.jxmtmnpdpa\n",
      "123377.bracfqwnfi\n",
      "223568.qscrxhqyjl\n",
      "555689.sapjpvwext\n",
      "023566.awpdywdwuk\n",
      "011559.tojcbkrkha\n",
      "000249.tvgvbxepth\n",
      "034577.lssogbchwb\n",
      "014556.ignwtpuctg\n",
      "223379.lumwailwrd\n",
      "024556.dqdwxxnxui\n",
      "278888.xadxuemtvq\n",
      "014446.xwmziwhucp\n",
      "014556.afpcotoaqo\n",
      "012469.aqfdsgaqpb\n",
      "044578.fxkaqiatez\n",
      "778899.drhdbcxggw\n",
      "124888.zigqirhfcu\n",
      "127999.yipanhibfe\n",
      "036789.bhtrvahfjr\n",
      "112256.cxtzgwjraq\n",
      "123479.mctnnigklp\n",
      "066666.nupzqdavek\n",
      "234578.pgpxajhfkx\n",
      "002455.uzkrzfiigz\n",
      "113479.akxhytudkq\n",
      "004888.hbaceklnwj\n",
      "022356.golokujomy\n",
      "234778.ugjqsyxxqi\n",
      "000166.zpfhgnbshl\n",
      "023468.epdzxmrrvt\n",
      "001115.keweurghfc\n",
      "034579.imswubqujm\n",
      "022799.wvfwsbuplq\n",
      "144888.mnifnwgbvk\n",
      "345669.eqqxsypyqf\n",
      "223569.hyelgabqys\n",
      "247789.iiavmgocll\n",
      "144566.mometngsyx\n",
      "466799.ryazbxjxbd\n",
      "127778.qtumvqeitx\n",
      "234667.paaeswbyol\n",
      "003346.xrngisddff\n"
     ]
    }
   ],
   "source": [
    "#随机生成100个产品ID，ID格式如下：\n",
    "#   顺序的数字6位，分隔符点号，10个随机的小写英文字母\n",
    "#   举例:000005.xcbaaduixy\n",
    "\n",
    "import random\n",
    "import string\n",
    "for i in range(100):\n",
    "    n = sorted(random.choices(string.digits,k=6))\n",
    "    l = random.choices(string.ascii_lowercase,k=10)\n",
    "    id = ''.join(n) + '.' + ''.join(l)\n",
    "    print(id)\n",
    "\n",
    "    \n",
    "# 这里的数字id，数字没有按顺序排"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
